package com.ziqikeji.xianyan.enumeration;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 删除标记 枚举
 * @author liuyu
 */
@SpringEnum
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DeleteFlagEnum {
    /**
     * 标记未删除
     */
    NO_DELETE("未删除"),
    /**
     * 标记删除
     */
    DELETE("标记删除");

    private String id;
    private String text;

    DeleteFlagEnum(String text) {
        this.text = text;
    }

    public String getId() {
        return this.name();
    }

    public String getText() {
        return this.text;
    }

    @Override
    public String toString() {
        return this.name();
    }
}
